//
//  Controller.h
//  Game of Life
//
//  Created by James Durkee on 5/12/09.
//  Copyright 2009 James and MP. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "GridView.h"
#import "Grid.h"


@interface Controller : NSObject {
	IBOutlet GridView *gridView;
	IBOutlet NSButton *controlButton;
	IBOutlet NSSlider *interval;
	IBOutlet NSTextField *intervalLabel;
	IBOutlet NSTextField *generationLabel;
	IBOutlet NSMenuItem *controlMenuItem;
	
	NSTimer *timer;
	
	Grid *grid;
}

- (IBAction)next:(id)sender;
- (IBAction)start:(id)sender;
- (IBAction)clear:(id)sender;
- (IBAction)intervalChanged:(id)sender;

- (void)next;
- (void)run:(BOOL)b;
@end
